.class public Lcom/estrongs/android/pop/app/filetransfer/f;
.super Les/s80;
.source "FileTransferRecvTask.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/filetransfer/f$c;
    }
.end annotation


# static fields
.field private static O:Lcom/estrongs/android/pop/app/filetransfer/f;


# instance fields
.field private D:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field

.field private E:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private F:Ljava/lang/String;

.field private G:Ljava/lang/String;

.field private H:Ljava/net/Socket;

.field private I:J

.field private J:Landroid/app/Activity;

.field private K:Lcom/estrongs/android/pop/app/filetransfer/f$c;

.field private L:Les/v80$f;

.field private M:Z

.field N:Ljava/lang/Long;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method private constructor <init>(Landroid/app/Activity;)V
    .locals 2

    .line 1
    invoke-direct {p0}, Les/s80;-><init>()V

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->D:Ljava/util/List;

    .line 3
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->E:Ljava/util/List;

    .line 4
    new-instance v0, Les/v80$f;

    invoke-direct {v0}, Les/v80$f;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->L:Les/v80$f;

    const/4 v0, 0x0

    .line 5
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->M:Z

    const-wide/16 v0, 0x0

    .line 6
    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->N:Ljava/lang/Long;

    .line 7
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->J:Landroid/app/Activity;

    return-void
.end method

.method private G()V
    .locals 2

    .line 1
    iget v0, p0, Les/s80;->s:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "task_type"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    const/4 v0, 0x0

    .line 2
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    const-string v1, "restartable"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->F:Ljava/lang/String;

    const-string v1, "title"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->K:Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget v0, v0, Lcom/estrongs/android/pop/app/filetransfer/f$c;->d:I

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    const-string v1, "items_selected_count"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 5
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->K:Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/filetransfer/f$c;->h:Ljava/lang/String;

    const-string v1, "source"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/android/pop/app/filetransfer/f;->D()Ljava/lang/String;

    move-result-object v0

    const-string v1, "target"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    .line 7
    iget-wide v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->I:J

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    const-string v1, "size"

    invoke-virtual {p0, v1, v0}, Les/s80;->a(Ljava/lang/String;Ljava/lang/Object;)V

    return-void
.end method

.method public static a(Landroid/app/Activity;)Lcom/estrongs/android/pop/app/filetransfer/f;
    .locals 2

    .line 2
    sget-object v0, Lcom/estrongs/android/pop/app/filetransfer/f;->O:Lcom/estrongs/android/pop/app/filetransfer/f;

    if-nez v0, :cond_1

    .line 3
    const-class v0, Lcom/estrongs/android/pop/app/filetransfer/f;

    monitor-enter v0

    .line 4
    :try_start_0
    sget-object v1, Lcom/estrongs/android/pop/app/filetransfer/f;->O:Lcom/estrongs/android/pop/app/filetransfer/f;

    if-nez v1, :cond_0

    .line 5
    new-instance v1, Lcom/estrongs/android/pop/app/filetransfer/f;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/filetransfer/f;-><init>(Landroid/app/Activity;)V

    sput-object v1, Lcom/estrongs/android/pop/app/filetransfer/f;->O:Lcom/estrongs/android/pop/app/filetransfer/f;

    .line 6
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception p0

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p0

    .line 7
    :cond_1
    :goto_0
    sget-object p0, Lcom/estrongs/android/pop/app/filetransfer/f;->O:Lcom/estrongs/android/pop/app/filetransfer/f;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/filetransfer/f;)Les/v80$f;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->L:Les/v80$f;

    return-object p0
.end method

.method static synthetic b(Lcom/estrongs/android/pop/app/filetransfer/f;)Landroid/app/Activity;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->J:Landroid/app/Activity;

    return-object p0
.end method

.method private c(Ljava/lang/String;)Z
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->E:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

    .line 2
    invoke-virtual {v1, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_0

    invoke-virtual {p1, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    const/4 v2, -0x1

    if-eq v1, v2, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_1
    const/4 p1, 0x0

    return p1
.end method


# virtual methods
.method public C()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->J:Landroid/app/Activity;

    new-instance v1, Lcom/estrongs/android/pop/app/filetransfer/f$a;

    invoke-direct {v1, p0}, Lcom/estrongs/android/pop/app/filetransfer/f$a;-><init>(Lcom/estrongs/android/pop/app/filetransfer/f;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    return-void
.end method

.method public D()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->G:Ljava/lang/String;

    return-object v0
.end method

.method public E()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->D:Ljava/util/List;

    return-object v0
.end method

.method public F()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->M:Z

    return v0
.end method

.method public varargs a(I[Ljava/lang/Object;)V
    .locals 6

    const/4 v0, 0x1

    const/4 v1, 0x0

    const/4 v2, 0x2

    if-eq p1, v2, :cond_1

    const/16 v2, 0x9

    if-eq p1, v2, :cond_0

    .line 8
    invoke-super {p0, p1, p2}, Les/s80;->a(I[Ljava/lang/Object;)V

    goto :goto_0

    .line 9
    :cond_0
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v1, p2, v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    iput-wide v1, p1, Les/w80$a;->g:J

    .line 10
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object p2, p2, v0

    check-cast p2, Ljava/lang/Long;

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p1, Les/w80$a;->h:J

    goto :goto_0

    .line 11
    :cond_1
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v1, p2, v1

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v3

    iput-wide v3, p1, Les/w80$a;->f:J

    .line 12
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    aget-object v0, p2, v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, p1, Les/w80$a;->a:Ljava/lang/String;

    .line 13
    aget-object p2, p2, v2

    check-cast p2, Ljava/lang/Long;

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    iput-wide v0, p1, Les/w80$a;->e:J

    .line 14
    invoke-virtual {p0}, Les/s80;->o()Z

    move-result p1

    if-eqz p1, :cond_2

    .line 15
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide p1

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    .line 16
    iget-object p2, p0, Les/s80;->c:Les/w80$a;

    iget-wide v0, p2, Les/w80$a;->f:J

    long-to-float v0, v0

    float-to-double v0, v0

    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->N:Ljava/lang/Long;

    invoke-virtual {p1}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    sub-long/2addr v2, v4

    long-to-double v2, v2

    const-wide v4, 0x408f400000000000L    # 1000.0

    invoke-static {v2, v3}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v2, v4

    invoke-static {v0, v1}, Ljava/lang/Double;->isNaN(D)Z

    div-double/2addr v0, v2

    double-to-int p1, v0

    iput p1, p2, Les/w80$a;->b:I

    .line 17
    iget-object p1, p0, Les/s80;->c:Les/w80$a;

    invoke-virtual {p0, p1}, Les/s80;->a(Les/w80$a;)V

    :cond_2
    :goto_0
    return-void
.end method

.method public b(Ljava/lang/Object;)V
    .locals 2

    .line 2
    check-cast p1, Lcom/estrongs/android/pop/app/filetransfer/f$c;

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    if-nez v0, :cond_0

    .line 4
    :try_start_0
    iget-object p1, p1, Lcom/estrongs/android/pop/app/filetransfer/f$c;->k:Ljava/net/Socket;

    invoke-virtual {p1}, Ljava/net/Socket;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void

    :cond_0
    const/4 v0, 0x1

    .line 5
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->M:Z

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->D:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 7
    iget-object v0, p1, Lcom/estrongs/android/pop/app/filetransfer/f$c;->j:Ljava/lang/String;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->G:Ljava/lang/String;

    .line 8
    iget-object v0, p1, Lcom/estrongs/android/pop/app/filetransfer/f$c;->i:Ljava/lang/String;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->F:Ljava/lang/String;

    .line 9
    iget-object v0, p1, Lcom/estrongs/android/pop/app/filetransfer/f$c;->k:Ljava/net/Socket;

    iput-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->H:Ljava/net/Socket;

    .line 10
    iget-wide v0, p1, Lcom/estrongs/android/pop/app/filetransfer/f$c;->f:J

    iput-wide v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->I:J

    .line 11
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->K:Lcom/estrongs/android/pop/app/filetransfer/f$c;

    const/4 p1, 0x0

    .line 12
    iput-boolean p1, p0, Les/s80;->w:Z

    .line 13
    iput-boolean p1, p0, Les/s80;->u:Z

    const/4 p1, 0x6

    .line 14
    iput p1, p0, Les/s80;->s:I

    .line 15
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/filetransfer/f;->G()V

    .line 16
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->F:Ljava/lang/String;

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, " "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/f;->J:Landroid/app/Activity;

    const v1, 0x7f1108f1

    invoke-virtual {v0, v1}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1}, Les/s80;->a(Ljava/lang/String;)V

    .line 17
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result p1

    const/16 v0, 0x15

    if-lt p1, v0, :cond_1

    .line 18
    new-instance p1, Lcom/estrongs/android/pop/e;

    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    invoke-direct {p1, v0}, Lcom/estrongs/android/pop/e;-><init>(Landroid/content/Context;)V

    invoke-virtual {p0, p1}, Les/s80;->a(Les/v80;)V

    :cond_1
    return-void
.end method

.method public b(Ljava/lang/String;)V
    .locals 1

    .line 19
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 20
    :cond_0
    new-instance v0, Lcom/estrongs/android/pop/app/filetransfer/f$b;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/pop/app/filetransfer/f$b;-><init>(Lcom/estrongs/android/pop/app/filetransfer/f;Ljava/lang/String;)V

    .line 21
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method

.method public y()Z
    .locals 26

    move-object/from16 v1, p0

    .line 1
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "Waiting for recving "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->F:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Les/w80$a;->a:Ljava/lang/String;

    .line 2
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    invoke-virtual {v1, v0}, Les/s80;->a(Les/w80$a;)V

    .line 3
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iget-object v2, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->K:Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget-wide v3, v2, Lcom/estrongs/android/pop/app/filetransfer/f$c;->f:J

    iput-wide v3, v0, Les/w80$a;->e:J

    .line 4
    iget-object v3, v2, Lcom/estrongs/android/pop/app/filetransfer/f$c;->i:Ljava/lang/String;

    iput-object v3, v0, Les/w80$a;->j:Ljava/lang/String;

    .line 5
    iget v0, v2, Lcom/estrongs/android/pop/app/filetransfer/f$c;->d:I

    const/4 v2, 0x1

    if-le v0, v2, :cond_0

    .line 6
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, v1, Les/s80;->c:Les/w80$a;

    iget-object v4, v3, Les/w80$a;->j:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "..."

    invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v3, Les/w80$a;->j:Ljava/lang/String;

    .line 7
    :cond_0
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iget-object v3, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->K:Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget v3, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->e:I

    int-to-long v3, v3

    iput-wide v3, v0, Les/w80$a;->c:J

    const-wide/16 v3, 0x0

    .line 8
    iput-wide v3, v0, Les/w80$a;->d:J

    .line 9
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v5

    const/16 v6, 0x2710

    .line 10
    :try_start_0
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->H:Ljava/net/Socket;

    invoke-virtual {v0, v6}, Ljava/net/Socket;->setSoTimeout(I)V

    .line 11
    new-instance v8, Ljava/io/DataInputStream;

    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->H:Ljava/net/Socket;

    invoke-virtual {v0}, Ljava/net/Socket;->getInputStream()Ljava/io/InputStream;

    move-result-object v0

    invoke-direct {v8, v0}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_9

    .line 12
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v9

    invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    iput-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->N:Ljava/lang/Long;

    move-wide v10, v3

    const/4 v0, 0x0

    const/4 v9, 0x0

    const/4 v12, 0x0

    const/4 v13, 0x0

    :goto_0
    const/4 v15, 0x2

    if-eqz v5, :cond_1

    .line 13
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v16

    if-eqz v16, :cond_1

    const/4 v9, 0x2

    goto/16 :goto_d

    .line 14
    :cond_1
    :try_start_1
    invoke-static {v8}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v3
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_7

    .line 15
    :try_start_2
    invoke-static {v8}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v4
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_1

    :catch_0
    const/4 v4, 0x0

    :goto_1
    :try_start_3
    const-string v6, "OVER"

    .line 16
    invoke-virtual {v3, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    if-nez v4, :cond_2

    goto/16 :goto_d

    .line 17
    :cond_2
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v14, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->G:Ljava/lang/String;

    invoke-virtual {v6, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    const-string v14, "folder"

    .line 18
    invoke-virtual {v4, v14}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    const/4 v14, -0x1

    const/16 v7, 0x2f

    if-eqz v4, :cond_5

    .line 19
    invoke-virtual {v3, v7}, Ljava/lang/String;->indexOf(I)I

    move-result v3

    if-ne v3, v14, :cond_3

    .line 20
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v3

    invoke-virtual {v3, v6}, Les/p10;->a(Ljava/lang/String;)V

    .line 21
    :cond_3
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v3

    invoke-virtual {v3, v6}, Lcom/estrongs/fs/f;->o(Ljava/lang/String;)Z

    .line 22
    invoke-direct {v1, v6}, Lcom/estrongs/android/pop/app/filetransfer/f;->c(Ljava/lang/String;)Z

    move-result v3

    if-nez v3, :cond_4

    .line 23
    iget-object v3, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->E:Ljava/util/List;

    invoke-interface {v3, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 24
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v3

    invoke-virtual {v3, v6}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v3

    .line 25
    iget-object v4, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->D:Ljava/util/List;

    invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 26
    invoke-static {}, Les/ul;->e()Les/ul;

    move-result-object v3

    invoke-virtual {v3, v6}, Les/ul;->a(Ljava/lang/String;)I

    move-result v19

    .line 27
    invoke-static {}, Les/ul;->e()Les/ul;

    move-result-object v17

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v20

    iget-object v3, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->K:Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget-object v3, v3, Lcom/estrongs/android/pop/app/filetransfer/f$c;->b:Ljava/lang/String;

    const/16 v23, 0x1

    sget-object v24, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->S:Ljava/lang/String;

    const/16 v25, 0x0

    move-object/from16 v18, v6

    move-object/from16 v22, v3

    invoke-virtual/range {v17 .. v25}, Les/ul;->a(Ljava/lang/String;IJLjava/lang/String;ILjava/lang/String;Ljava/lang/String;)V

    :cond_4
    :goto_2
    const-wide/16 v3, 0x0

    const/16 v6, 0x2710

    goto/16 :goto_0

    .line 28
    :cond_5
    invoke-static {v8}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v4

    .line 29
    iget-object v14, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->L:Les/v80$f;

    monitor-enter v14
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_7

    if-nez v0, :cond_8

    .line 30
    :try_start_4
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v7

    invoke-virtual {v7, v6}, Lcom/estrongs/fs/f;->c(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_8

    .line 31
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->L:Les/v80$f;

    iput-object v6, v0, Les/v80$f;->e:Ljava/lang/String;

    .line 32
    invoke-virtual/range {p0 .. p0}, Lcom/estrongs/android/pop/app/filetransfer/f;->C()V

    .line 33
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->L:Les/v80$f;

    invoke-virtual {v0}, Ljava/lang/Object;->wait()V

    .line 34
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->L:Les/v80$f;

    iget-boolean v0, v0, Les/v80$c;->b:Z

    .line 35
    iget-object v7, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->L:Les/v80$f;

    iget v7, v7, Les/v80$c;->c:I

    if-ne v7, v15, :cond_6

    const/4 v7, 0x1

    goto :goto_3

    :cond_6
    const/4 v7, 0x0

    .line 36
    :goto_3
    iget-object v12, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->L:Les/v80$f;

    iget v12, v12, Les/v80$c;->c:I

    if-ne v12, v2, :cond_7

    const/4 v12, 0x1

    goto :goto_4

    :cond_7
    const/4 v12, 0x0

    :goto_4
    move v13, v12

    move v12, v7

    :cond_8
    move v7, v0

    .line 37
    monitor-exit v14
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    const/16 v0, 0x4000

    new-array v14, v0, [B

    .line 38
    invoke-static {v4}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J

    move-result-wide v19

    const/4 v4, 0x0

    const-wide/16 v21, 0x0

    :goto_5
    if-eqz v5, :cond_9

    .line 39
    invoke-virtual {v5}, Les/s80;->z()Z

    move-result v23

    if-eqz v23, :cond_9

    move-object/from16 v23, v3

    const/4 v9, 0x2

    goto/16 :goto_9

    :cond_9
    if-eqz v12, :cond_a

    .line 40
    :try_start_5
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v2

    invoke-virtual {v2, v6}, Lcom/estrongs/fs/f;->c(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_b

    goto :goto_6

    :catch_1
    move-exception v0

    move-object/from16 v23, v3

    goto/16 :goto_8

    :cond_a
    :goto_6
    if-nez v4, :cond_b

    .line 41
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v2

    invoke-virtual {v2, v6}, Lcom/estrongs/fs/f;->h(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object v4

    :cond_b
    cmp-long v2, v21, v19

    if-ltz v2, :cond_c

    .line 42
    invoke-static {v8}, Les/c90;->a(Ljava/io/InputStream;)Ljava/lang/String;
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_1

    move-object/from16 v23, v3

    goto :goto_9

    :cond_c
    move-object/from16 v23, v3

    int-to-long v2, v0

    add-long v2, v21, v2

    cmp-long v24, v2, v19

    if-lez v24, :cond_d

    sub-long v2, v19, v21

    long-to-int v3, v2

    const/4 v2, 0x0

    .line 43
    :try_start_6
    invoke-virtual {v8, v14, v2, v3}, Ljava/io/DataInputStream;->read([BII)I

    move-result v3
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2

    goto :goto_7

    :catch_2
    move-exception v0

    goto :goto_8

    .line 44
    :cond_d
    :try_start_7
    invoke-virtual {v8, v14}, Ljava/io/DataInputStream;->read([B)I

    move-result v3
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_4

    :goto_7
    if-gtz v3, :cond_e

    goto :goto_9

    :cond_e
    if-eqz v4, :cond_f

    const/4 v2, 0x0

    .line 45
    :try_start_8
    invoke-virtual {v4, v14, v2, v3}, Ljava/io/OutputStream;->write([BII)V
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_2

    :cond_f
    int-to-long v2, v3

    add-long v21, v21, v2

    add-long/2addr v10, v2

    const/16 v2, 0x9

    :try_start_9
    new-array v3, v15, [Ljava/lang/Object;

    .line 46
    invoke-static/range {v19 .. v20}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v24

    const/16 v25, 0x0

    aput-object v24, v3, v25

    invoke-static/range {v21 .. v22}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v24

    const/16 v25, 0x1

    aput-object v24, v3, v25

    invoke-virtual {v5, v2, v3}, Les/s80;->b(I[Ljava/lang/Object;)V

    const/4 v2, 0x3

    new-array v2, v2, [Ljava/lang/Object;

    .line 47
    invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    const/16 v24, 0x0

    aput-object v3, v2, v24

    aput-object v6, v2, v25
    :try_end_9
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_9} :catch_4

    move-object/from16 v24, v4

    :try_start_a
    iget-wide v3, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->I:J

    .line 48
    invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    aput-object v3, v2, v15

    .line 49
    invoke-virtual {v5, v15, v2}, Les/s80;->b(I[Ljava/lang/Object;)V
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_a} :catch_3

    move-object/from16 v3, v23

    move-object/from16 v4, v24

    const/4 v2, 0x1

    goto/16 :goto_5

    :catch_3
    move-exception v0

    move-object/from16 v4, v24

    goto :goto_8

    :catch_4
    move-exception v0

    move-object/from16 v24, v4

    .line 50
    :goto_8
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 51
    :goto_9
    :try_start_b
    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V
    :try_end_b
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_b} :catch_5

    goto :goto_a

    :catch_5
    nop

    .line 52
    :goto_a
    iget-object v0, v1, Les/s80;->c:Les/w80$a;

    iget-wide v2, v0, Les/w80$a;->d:J

    const-wide/16 v24, 0x1

    add-long v2, v2, v24

    iput-wide v2, v0, Les/w80$a;->d:J

    if-eqz v9, :cond_10

    .line 53
    :try_start_c
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z
    :try_end_c
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_c} :catch_6

    goto :goto_d

    :catch_6
    nop

    goto :goto_d

    :cond_10
    cmp-long v0, v19, v21

    if-eqz v0, :cond_11

    .line 54
    :try_start_d
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/estrongs/fs/f;->b(Ljava/lang/String;)Z
    :try_end_d
    .catch Ljava/lang/Exception; {:try_start_d .. :try_end_d} :catch_7

    goto :goto_c

    :cond_11
    if-eqz v13, :cond_12

    .line 55
    invoke-static {v6}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/lang/String;)V

    goto :goto_b

    :cond_12
    if-nez v12, :cond_13

    .line 56
    invoke-static {v6}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/lang/String;)V

    :cond_13
    :goto_b
    move-object/from16 v2, v23

    const/16 v3, 0x2f

    .line 57
    invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(I)I

    move-result v0

    const/4 v2, -0x1

    if-ne v0, v2, :cond_14

    .line 58
    invoke-static {}, Les/p10;->e()Les/p10;

    move-result-object v0

    invoke-virtual {v0, v6}, Les/p10;->a(Ljava/lang/String;)V

    .line 59
    :cond_14
    invoke-direct {v1, v6}, Lcom/estrongs/android/pop/app/filetransfer/f;->c(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_15

    .line 60
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object v0

    .line 61
    iget-object v2, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->D:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 62
    invoke-static {}, Les/ul;->e()Les/ul;

    move-result-object v0

    invoke-virtual {v0, v6}, Les/ul;->a(Ljava/lang/String;)I

    move-result v19

    .line 63
    invoke-static {}, Les/ul;->e()Les/ul;

    move-result-object v17

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v20

    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->K:Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget-object v0, v0, Lcom/estrongs/android/pop/app/filetransfer/f$c;->b:Ljava/lang/String;

    const/16 v23, 0x1

    sget-object v24, Lcom/estrongs/android/pop/app/filetransfer/FileTransferProcessActivity;->S:Ljava/lang/String;

    const/16 v25, 0x0

    move-object/from16 v18, v6

    move-object/from16 v22, v0

    invoke-virtual/range {v17 .. v25}, Les/ul;->a(Ljava/lang/String;IJLjava/lang/String;ILjava/lang/String;Ljava/lang/String;)V

    :cond_15
    move v0, v7

    const/4 v2, 0x1

    goto/16 :goto_2

    :catchall_0
    move-exception v0

    .line 64
    :try_start_e
    monitor-exit v14
    :try_end_e
    .catchall {:try_start_e .. :try_end_e} :catchall_0

    :try_start_f
    throw v0
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_f} :catch_7

    :catch_7
    :goto_c
    const/4 v9, 0x1

    :goto_d
    if-nez v9, :cond_16

    .line 65
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->K:Lcom/estrongs/android/pop/app/filetransfer/f$c;

    iget-boolean v0, v0, Lcom/estrongs/android/pop/app/filetransfer/f$c;->l:Z

    if-eqz v0, :cond_18

    .line 66
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->J:Landroid/app/Activity;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->G:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->F:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    invoke-static {v0, v3, v2}, Lcom/estrongs/android/pop/view/utils/b;->d(Landroid/app/Activity;Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_e

    :cond_16
    const/4 v2, 0x1

    const/4 v3, 0x0

    if-ne v9, v2, :cond_17

    .line 67
    new-instance v0, Les/u80$a;

    iget-object v2, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->J:Landroid/app/Activity;

    const v4, 0x7f1109d5

    .line 68
    invoke-virtual {v2, v4}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2, v3}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    const/16 v2, 0x2710

    .line 69
    invoke-virtual {v1, v2, v0}, Les/s80;->b(ILjava/lang/Object;)V

    goto :goto_e

    :cond_17
    const/16 v2, 0x2710

    if-ne v9, v15, :cond_18

    .line 70
    new-instance v0, Les/u80$a;

    iget-object v4, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->J:Landroid/app/Activity;

    const v5, 0x7f110935

    .line 71
    invoke-virtual {v4, v5}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v0, v4, v3}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    .line 72
    invoke-virtual {v1, v2, v0}, Les/s80;->b(ILjava/lang/Object;)V

    .line 73
    :cond_18
    :goto_e
    :try_start_10
    iget-object v0, v1, Lcom/estrongs/android/pop/app/filetransfer/f;->H:Ljava/net/Socket;

    invoke-virtual {v0}, Ljava/net/Socket;->close()V
    :try_end_10
    .catch Ljava/io/IOException; {:try_start_10 .. :try_end_10} :catch_8

    goto :goto_f

    :catch_8
    nop

    :goto_f
    if-nez v9, :cond_19

    const/4 v2, 0x1

    return v2

    :cond_19
    const/4 v2, 0x0

    return v2

    :catch_9
    move-exception v0

    .line 74
    new-instance v2, Les/u80$a;

    const-string v3, "Sender disconnected."

    invoke-direct {v2, v3, v0}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    const/16 v3, 0x2710

    invoke-virtual {v1, v3, v2}, Les/s80;->b(ILjava/lang/Object;)V

    const/4 v2, 0x0

    return v2
.end method
